package com.cykj.admin.mapper;

import com.cykj.admin.vo.UserVO;
import com.cykj.common.entity.UserDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @BelongsProject:@BelonqsPackage:com.cykj.admin.mapper
 * @Author:jiangna
 * @CreateTime:2025-08-16 11:35
 */
@Mapper
public interface UserMapper {

    /**
    * @Description: 获取所有用户的信息 / 根据条件查询用户信息
    * @Param: [userVO]
    * @return: java.util.List<com.cykj.common.entity.UserDO>
    */
    List<UserDO> selectByCondition(@Param("userVO")UserVO userVO);

    /**
    * @Description: 重置用户密码
    * @Param: [userVO]
    * @return: int
    */
    Integer resetPassword(Integer userId);

    /**
    * @Description: 封禁用户
    * @Param: [userVO]
    * @return: int
    */
    Integer userBlock(@Param("userVO")UserVO userVO);
}
